package com.spring.security.web.model;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class BaseModel implements Serializable{
	
	private static final long serialVersionUID = 1L;
	//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdtime;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date changedtime;
    @JsonIgnore
    private String initialoperatorid;
    @JsonIgnore
    private String initialoperatorname;
    @JsonIgnore
    private String operatorid;
    @JsonIgnore
    private String operatorname;
    @JsonIgnore
    private Integer entityavailablestate;

	public Date getCreatedtime() {
		return createdtime;
	}

	public void setCreatedtime(Date createdtime) {
		this.createdtime = createdtime;
	}

	public Date getChangedtime() {
		return changedtime;
	}

	public void setChangedtime(Date changedtime) {
		this.changedtime = changedtime;
	}

	public String getInitialoperatorid() {
		return initialoperatorid;
	}

	public void setInitialoperatorid(String initialoperatorid) {
		this.initialoperatorid = initialoperatorid;
	}

	public String getInitialoperatorname() {
		return initialoperatorname;
	}

	public void setInitialoperatorname(String initialoperatorname) {
		this.initialoperatorname = initialoperatorname;
	}

	public String getOperatorid() {
		return operatorid;
	}

	public void setOperatorid(String operatorid) {
		this.operatorid = operatorid;
	}

	public String getOperatorname() {
		return operatorname;
	}

	public void setOperatorname(String operatorname) {
		this.operatorname = operatorname;
	}

	public Integer getEntityavailablestate() {
		return entityavailablestate;
	}

	public void setEntityavailablestate(Integer entityavailablestate) {
		this.entityavailablestate = entityavailablestate;
	}
	
	public void initInfo(){
		this.setCreatedtime(new Date());
		this.setChangedtime(new Date());
		this.setEntityavailablestate(10);
	}
	
}
